//
//  CmgeBaseView.h
//  CmgeIosClient
//
//  Created by Gang.Liu on 14-3-21.
//  Copyright (c) 2014年 zhouqing. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 *  SRView Orientation
 */
@protocol SRBaseViewProtocol <NSObject>

@optional

/**
 *  创建Views, 但是不包含布局
 */
-(void)setupViews;

/**
 *  初始化一些数据, after setupViews called.
 */
-(void)setupData;

/**
 *  竖屏布局
 */
-(void)layoutPortrait;

/**
 *  横屏布局
 */
-(void)layoutLandscape;

/**
 *  View 竖屏配置
 */
-(void)configViewPortrait;

/**
 *  View 横屏配置
 */
-(void)configViewLandscape;

@end

/**
 *  CmgeBaseView, 所有的Custom View都应该继承CmgeBaseView
 */
@interface LGBaseView : UIView <SRBaseViewProtocol>

@property (nonatomic, assign) UIInterfaceOrientation orientation;

@end
